package com.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 体质健康
 * User: 刘文雄
 * Date:2022/3/28 15:35
 * 体质健康实体类
 */
public class PhysicalHealth implements Serializable {
    private Integer id;//纯数字id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date writeTime;
    private String schoolName;
    private  Long classesId;
    private Long studentId;
    private Integer height;
    private Double weight;
    private Double BMIScore;
    private Double BMIMark;
    private Integer BMILevel;
    private String suggest;

    @Override
    public String toString() {
        return "PhysicalHealth{" +
                "id=" + id +
                ", writeTime=" + writeTime +
                ", schoolName='" + schoolName + '\'' +
                ", classesId=" + classesId +
                ", studentId=" + studentId +
                ", height=" + height +
                ", weight=" + weight +
                ", BMIScore=" + BMIScore +
                ", BMIMark=" + BMIMark +
                ", BMILevel=" + BMILevel +
                ", suggest='" + suggest + '\'' +
                '}';
    }

    public PhysicalHealth() {
    }

    public PhysicalHealth(Long studentId) {
        this.studentId = studentId;
    }

    public PhysicalHealth(Date writeTime) {
        this.writeTime = writeTime;
    }

    public PhysicalHealth(Date writeTime, String schoolName, Long classesId, Long studentId, Integer height, Double weight, Double BMIScore, Double BMIMark, Integer BMILevel, String suggest) {
        this.writeTime = writeTime;
        this.schoolName = schoolName;
        this.classesId = classesId;
        this.studentId = studentId;
        this.height = height;
        this.weight = weight;
        this.BMIScore = BMIScore;
        this.BMIMark = BMIMark;
        this.BMILevel = BMILevel;
        this.suggest = suggest;
    }

    public PhysicalHealth(Integer id, Date writeTime, String schoolName, Long classesId, Long studentId, Integer height, Double weight, Double BMIScore, Double BMIMark, Integer BMILevel, String suggest) {
        this.id = id;
        this.writeTime = writeTime;
        this.schoolName = schoolName;
        this.classesId = classesId;
        this.studentId = studentId;
        this.height = height;
        this.weight = weight;
        this.BMIScore = BMIScore;
        this.BMIMark = BMIMark;
        this.BMILevel = BMILevel;
        this.suggest = suggest;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getWriteTime() {
        return writeTime;
    }

    public void setWriteTime(Date writeTime) {
        this.writeTime = writeTime;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public Long getClassesId() {
        return classesId;
    }

    public void setClassesId(Long classesId) {
        this.classesId = classesId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getBMIScore() {
        return BMIScore;
    }

    public void setBMIScore(Double BMIScore) {
        this.BMIScore = BMIScore;
    }

    public Double getBMIMark() {
        return BMIMark;
    }

    public void setBMIMark(Double BMIMark) {
        this.BMIMark = BMIMark;
    }

    public Integer getBMILevel() {
        return BMILevel;
    }

    public void setBMILevel(Integer BMILevel) {
        this.BMILevel = BMILevel;
    }

    public String getSuggest() {
        return suggest;
    }

    public void setSuggest(String suggest) {
        this.suggest = suggest;
    }
}
